package com.sz.stock.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class StockStopPointExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StockStopPointExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStockRFIdIsNull() {
            addCriterion("STOCK_R_F_ID is null");
            return (Criteria) this;
        }

        public Criteria andStockRFIdIsNotNull() {
            addCriterion("STOCK_R_F_ID is not null");
            return (Criteria) this;
        }

        public Criteria andStockRFIdEqualTo(Integer value) {
            addCriterion("STOCK_R_F_ID =", value, "stockRFId");
            return (Criteria) this;
        }

        public Criteria andStockRFIdNotEqualTo(Integer value) {
            addCriterion("STOCK_R_F_ID <>", value, "stockRFId");
            return (Criteria) this;
        }

        public Criteria andStockRFIdGreaterThan(Integer value) {
            addCriterion("STOCK_R_F_ID >", value, "stockRFId");
            return (Criteria) this;
        }

        public Criteria andStockRFIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_R_F_ID >=", value, "stockRFId");
            return (Criteria) this;
        }

        public Criteria andStockRFIdLessThan(Integer value) {
            addCriterion("STOCK_R_F_ID <", value, "stockRFId");
            return (Criteria) this;
        }

        public Criteria andStockRFIdLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_R_F_ID <=", value, "stockRFId");
            return (Criteria) this;
        }

        public Criteria andStockRFIdIn(List<Integer> values) {
            addCriterion("STOCK_R_F_ID in", values, "stockRFId");
            return (Criteria) this;
        }

        public Criteria andStockRFIdNotIn(List<Integer> values) {
            addCriterion("STOCK_R_F_ID not in", values, "stockRFId");
            return (Criteria) this;
        }

        public Criteria andStockRFIdBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_R_F_ID between", value1, value2, "stockRFId");
            return (Criteria) this;
        }

        public Criteria andStockRFIdNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_R_F_ID not between", value1, value2, "stockRFId");
            return (Criteria) this;
        }

        public Criteria andStockIdIsNull() {
            addCriterion("STOCK_ID is null");
            return (Criteria) this;
        }

        public Criteria andStockIdIsNotNull() {
            addCriterion("STOCK_ID is not null");
            return (Criteria) this;
        }

        public Criteria andStockIdEqualTo(Integer value) {
            addCriterion("STOCK_ID =", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdNotEqualTo(Integer value) {
            addCriterion("STOCK_ID <>", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdGreaterThan(Integer value) {
            addCriterion("STOCK_ID >", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ID >=", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdLessThan(Integer value) {
            addCriterion("STOCK_ID <", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ID <=", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdIn(List<Integer> values) {
            addCriterion("STOCK_ID in", values, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdNotIn(List<Integer> values) {
            addCriterion("STOCK_ID not in", values, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ID between", value1, value2, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ID not between", value1, value2, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockRMaxIsNull() {
            addCriterion("STOCK_R_MAX is null");
            return (Criteria) this;
        }

        public Criteria andStockRMaxIsNotNull() {
            addCriterion("STOCK_R_MAX is not null");
            return (Criteria) this;
        }

        public Criteria andStockRMaxEqualTo(BigDecimal value) {
            addCriterion("STOCK_R_MAX =", value, "stockRMax");
            return (Criteria) this;
        }

        public Criteria andStockRMaxNotEqualTo(BigDecimal value) {
            addCriterion("STOCK_R_MAX <>", value, "stockRMax");
            return (Criteria) this;
        }

        public Criteria andStockRMaxGreaterThan(BigDecimal value) {
            addCriterion("STOCK_R_MAX >", value, "stockRMax");
            return (Criteria) this;
        }

        public Criteria andStockRMaxGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("STOCK_R_MAX >=", value, "stockRMax");
            return (Criteria) this;
        }

        public Criteria andStockRMaxLessThan(BigDecimal value) {
            addCriterion("STOCK_R_MAX <", value, "stockRMax");
            return (Criteria) this;
        }

        public Criteria andStockRMaxLessThanOrEqualTo(BigDecimal value) {
            addCriterion("STOCK_R_MAX <=", value, "stockRMax");
            return (Criteria) this;
        }

        public Criteria andStockRMaxIn(List<BigDecimal> values) {
            addCriterion("STOCK_R_MAX in", values, "stockRMax");
            return (Criteria) this;
        }

        public Criteria andStockRMaxNotIn(List<BigDecimal> values) {
            addCriterion("STOCK_R_MAX not in", values, "stockRMax");
            return (Criteria) this;
        }

        public Criteria andStockRMaxBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("STOCK_R_MAX between", value1, value2, "stockRMax");
            return (Criteria) this;
        }

        public Criteria andStockRMaxNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("STOCK_R_MAX not between", value1, value2, "stockRMax");
            return (Criteria) this;
        }

        public Criteria andStockFMixIsNull() {
            addCriterion("STOCK_F_MIX is null");
            return (Criteria) this;
        }

        public Criteria andStockFMixIsNotNull() {
            addCriterion("STOCK_F_MIX is not null");
            return (Criteria) this;
        }

        public Criteria andStockFMixEqualTo(BigDecimal value) {
            addCriterion("STOCK_F_MIX =", value, "stockFMix");
            return (Criteria) this;
        }

        public Criteria andStockFMixNotEqualTo(BigDecimal value) {
            addCriterion("STOCK_F_MIX <>", value, "stockFMix");
            return (Criteria) this;
        }

        public Criteria andStockFMixGreaterThan(BigDecimal value) {
            addCriterion("STOCK_F_MIX >", value, "stockFMix");
            return (Criteria) this;
        }

        public Criteria andStockFMixGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("STOCK_F_MIX >=", value, "stockFMix");
            return (Criteria) this;
        }

        public Criteria andStockFMixLessThan(BigDecimal value) {
            addCriterion("STOCK_F_MIX <", value, "stockFMix");
            return (Criteria) this;
        }

        public Criteria andStockFMixLessThanOrEqualTo(BigDecimal value) {
            addCriterion("STOCK_F_MIX <=", value, "stockFMix");
            return (Criteria) this;
        }

        public Criteria andStockFMixIn(List<BigDecimal> values) {
            addCriterion("STOCK_F_MIX in", values, "stockFMix");
            return (Criteria) this;
        }

        public Criteria andStockFMixNotIn(List<BigDecimal> values) {
            addCriterion("STOCK_F_MIX not in", values, "stockFMix");
            return (Criteria) this;
        }

        public Criteria andStockFMixBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("STOCK_F_MIX between", value1, value2, "stockFMix");
            return (Criteria) this;
        }

        public Criteria andStockFMixNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("STOCK_F_MIX not between", value1, value2, "stockFMix");
            return (Criteria) this;
        }

        public Criteria andStockNowdayIsNull() {
            addCriterion("STOCK_NOWDAY is null");
            return (Criteria) this;
        }

        public Criteria andStockNowdayIsNotNull() {
            addCriterion("STOCK_NOWDAY is not null");
            return (Criteria) this;
        }

        public Criteria andStockNowdayEqualTo(String value) {
            addCriterion("STOCK_NOWDAY =", value, "stockNowday");
            return (Criteria) this;
        }

        public Criteria andStockNowdayNotEqualTo(String value) {
            addCriterion("STOCK_NOWDAY <>", value, "stockNowday");
            return (Criteria) this;
        }

        public Criteria andStockNowdayGreaterThan(String value) {
            addCriterion("STOCK_NOWDAY >", value, "stockNowday");
            return (Criteria) this;
        }

        public Criteria andStockNowdayGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_NOWDAY >=", value, "stockNowday");
            return (Criteria) this;
        }

        public Criteria andStockNowdayLessThan(String value) {
            addCriterion("STOCK_NOWDAY <", value, "stockNowday");
            return (Criteria) this;
        }

        public Criteria andStockNowdayLessThanOrEqualTo(String value) {
            addCriterion("STOCK_NOWDAY <=", value, "stockNowday");
            return (Criteria) this;
        }

        public Criteria andStockNowdayLike(String value) {
            addCriterion("STOCK_NOWDAY like", value, "stockNowday");
            return (Criteria) this;
        }

        public Criteria andStockNowdayNotLike(String value) {
            addCriterion("STOCK_NOWDAY not like", value, "stockNowday");
            return (Criteria) this;
        }

        public Criteria andStockNowdayIn(List<String> values) {
            addCriterion("STOCK_NOWDAY in", values, "stockNowday");
            return (Criteria) this;
        }

        public Criteria andStockNowdayNotIn(List<String> values) {
            addCriterion("STOCK_NOWDAY not in", values, "stockNowday");
            return (Criteria) this;
        }

        public Criteria andStockNowdayBetween(String value1, String value2) {
            addCriterion("STOCK_NOWDAY between", value1, value2, "stockNowday");
            return (Criteria) this;
        }

        public Criteria andStockNowdayNotBetween(String value1, String value2) {
            addCriterion("STOCK_NOWDAY not between", value1, value2, "stockNowday");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}